/**
 * Created by 杨乐 on 2017/5/16.
 */
class StageManager{

    public static width:number = 1863;//stage宽度
    public static height:number = 1080;//stage高度
    public static sightWidth:number = 1863;//视野宽度 缩放之后变灰
    public static sightHeight:number = 1080;//视野高度 缩放之后会变
    public static scale:number = 1;//缩放

    /**
     * stage 管理器 初始化
     */
    public static init():void{
        StageManager.onResize();
    }

    /**
     * 舞台大小变更
     */
    public static onResize():void{
        StageManager.width = Laya.stage.width;
        StageManager.height = Laya.stage.height;
        StageManager.sightWidth = Laya.stage.width;
        StageManager.sightHeight = Laya.stage.height;
    }
}